package com.itheima.controller;


import com.itheima.entity.PageResult;
import com.itheima.entity.SmallPageBean;
import com.itheima.service.RoleService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
public class RoleController {

    @Reference
    private RoleService roleService;

    @RequestMapping("/findAll")
    public PageResult findAll(@RequestBody SmallPageBean smallPageBean){
        return roleService.findAll(smallPageBean);
    }
}
